package com.cqemme.activitiservice.config;

import com.cqemme.comm.constraint.MqNames;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author nejery
 */
@Configuration
public class RabbitConfiguration {
    @Bean
    public Queue queue() {
        return new Queue(MqNames.SCHOOL_HARDWARE_TO_ACTIVITI_ALARM);
    }

    @Bean
    public Queue queue1() {
        return new Queue(MqNames.SCHOOL_ALL_TO_SOCKET_SEND_MESSAGE_INFO_BY_PARAMS);
    }
}
